/**  
 * All rights Reserved, Designed By www.tokenmaster.io
 * @Title:  Order_Spot.java   
 * @Package com.tokenmaster.autohedging.common   
 * @Description:    TODO(用一句话描述该文件做什么)   
 * @author: 橘狮互联网科技有限公司 
 * @date:   2018年5月20日 上午1:57:18   
 * @version V1.0 
 * @Copyright: 2018 www.tokenmaster.io Inc. All rights reserved. 
 * 注意：本内容仅限于橘狮互联网科技有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
package com.tokenmaster.aitrade.common.system;

/**
 * @ClassName: Order_Spot
 * @Description: 现货订单
 * @author buxinyun
 * @date 2018年5月20日 上午1:57:18
 * 
 */
public class Order_Spot {

	// amount:委托数量
	// create_date: 委托时间
	// avg_price:平均成交价
	// deal_amount:成交数量
	// order_id:订单ID
	// orders_id:订单ID(不建议使用)
	// price:委托价格
	// status:-1:已撤销 0:未成交 1:部分成交 2:完全成交 3:撤单处理中
	// type:buy_market:市价买入 / sell_market:市价卖出

	private Integer orderId;
	private String symbol;
	private String type;
	private double price;
	private double amount;

	private double avg_price;
	private double deal_amount;
	private long create_date = 0;
	private Integer status = 0;

	/**
	 * 构造函数
	 */
	public Order_Spot(String symbol, String type, double price, double amount) {
		this.symbol = symbol;
		this.type = type;
		this.price = price;
		this.amount = amount;
		this.create_date = System.currentTimeMillis();
	}

	/**
	 * 
	 */
	public Order_Spot() {
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public double getAvg_price() {
		return avg_price;
	}

	public void setAvg_price(double avg_price) {
		this.avg_price = avg_price;
	}

	public double getDeal_amount() {
		return deal_amount;
	}

	public void setDeal_amount(double deal_amount) {
		this.deal_amount = deal_amount;
	}

	public long getCreate_date() {
		return create_date;
	}

	public void setCreate_date(long create_date) {
		this.create_date = create_date;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}
